package com.weslide.weslideapp.service;

import com.weslide.weslideapp.activity.UnlockActivity;
import com.weslide.weslideapp.receiver.BootBroadCastReceiver;

import android.app.Service;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.IBinder;
import android.util.Log;

public class MyService extends Service {
	private static final String TAG = "MyService";

	@Override
	public IBinder onBind(Intent intent) {
		return null;
	}

	@Override
	public void onCreate() {
		super.onCreate();
		Log.i(TAG, "onCreate");
		IntentFilter intentFilter = new IntentFilter();
		intentFilter.addAction(Intent.ACTION_SCREEN_ON);
		intentFilter.addAction(Intent.ACTION_SCREEN_OFF);
		registerReceiver(new BootBroadCastReceiver(), intentFilter);
		// Intent intent = new Intent(this, UnlockActivity.class);
		// startActivity(intent);
	}

}
